<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
      
<ui:composition template="/restrito/template.xhtml">

<ui:define name="menu"><ui:include src="menu.xhtml"/></ui:define>

<ui:define name="corpo">
<div class="container">
	<div class="container-fluid">
		<div class="row-fluid">
			<ui:include src="menulateralprofissional.xhtml" />

			<div class="span9">
				<ui:include src="../mensagem.xhtml"/>
			    <h:form id="f" styleClass="form-horizontal">
			    	<fieldset>
			    	<legend>Dados de acesso</legend>
			        <div class="control-group">
			  			<h:outputLabel for="senhaAtual" value="* Senha atual" styleClass="control-label"/>
			  			<div class="controls">
							<h:inputSecret id="senhaAtual" value="#{alterarSenhaProfissionalMB.senhaAtual}" required="true" maxlength="20" styleClass="input-xlarge"/>
							<rich:message for="senhaAtual" />
			  			</div>
					</div>
			        <div class="control-group">
			  			<h:outputLabel for="senhaNova" value="* Nova senha" styleClass="control-label"/>
			  			<div class="controls">
			  				<h:inputSecret id="senhaNova" value="#{alterarSenhaProfissionalMB.senhaNova}" binding="#{senhaNova}" required="true" maxlength="20" styleClass="input-xlarge">
			  					<f:validateLength minimum="6" />
			  				</h:inputSecret>
							<rich:message for="senhaNova" />
			  			</div>
					</div>
			        <div class="control-group">
			  			<h:outputLabel for="senhaNovaConfirmacao" value="* Confirme sua nova senha" styleClass="control-label"/>
			  			<div class="controls">
			  				<h:inputSecret id="senhaNovaConfirmacao" value="#{alterarSenhaProfissionalMB.senhaNovaConfirmacao}" required="true" maxlength="20" styleClass="input-xlarge">
			  					<f:validateLength minimum="6" />
			  					<f:validator validatorId="validadorConfirmacaoSenha"/>
			  					<f:attribute name="senha" value="#{senhaNova}"/>
			  				</h:inputSecret>
							<rich:message for="senhaNovaConfirmacao" />
			  			</div>
					</div>
					</fieldset>
					<div class="form-actions">
						<h:commandButton action="#{alterarSenhaProfissionalMB.alterar}" value="Alterar Senha" styleClass="btn-large btn-primary"/>
					</div>
				</h:form>
			</div>
		</div>
	</div>
</div>
	<script type="text/javascript">
		jQuery('#1002').addClass('active');
		jQuery('#1002i').addClass('icon-white');
	</script>
</ui:define>
</ui:composition>
</html>
